
package Figuras;
import java.awt.Graphics;
import java.util.Vector;

/**
 *
 * @author Administrador
 */
public class Lienzo extends DoubleBuffer {
    public static String userName = "Jugador";
    private Vector<Figura> f= new Vector<Figura>();
    private Vector<Figura> f2= new Vector<Figura>();

    public Lienzo(){ 
        super();
    }

    @Override
    public void paintBuffer(Graphics g){
	    for(int i0=0; i0<getF().size(); i0++)
            getF().get(i0).dibujate(g);
        for(int i0=0; i0<getF2().size(); i0++)
            getF2().get(i0).dibujate(g);
	}

    public String getUserName(){
        return userName;
    }

    public void setUserName(String user){
        userName=user;
    }
    public Vector<Figura> getF() {
        return f;
    }
    public Vector<Figura> getF2() {
        return f2;
    }
    public void setF(Vector<Figura> vf){
        f=vf;
    }
    public void setF2(Vector<Figura> vf){
        f2=vf;
    }
}
